<%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2020/9/26
  Time: 14:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>地址添加</title>
</head>
<body>
<h1>地址添加</h1>
<table border="1px" width="80%">
    <tr><th>地址</th>操作</tr>
    <c:if test="${not empty adresses}">
        <c:forEach items="${aderss}" var="adress">
            <tr>
                <td>${adress.adressvalue}</td>
                <td>
                    <a href="/ordersave.do?method&id=${adress.id}">删除</a>
                    <a href="/ordersave.do?method=choice">选择</a>
                </td>
            </tr>
        </c:forEach>
    </c:if>
</table>
<form action="adressadd.jsp" method="post">
    <input type="submit" value="添加地址">
</form>
</body>
</html>
